package com.xxwu.springiocdi.controller;

//yml文件配置测试代码
import com.xxwu.springiocdi.dao.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class YmlController {
    @Autowired
    private User user;
    @RequestMapping("/getYml")
    public String getYml(){
        return user.toString();
    }
}
